package pl.edu.agh.ki.ewywiadowka.client.dto;

import pl.edu.agh.ki.ewywiadowka.client.Const;
import pl.edu.agh.ki.ewywiadowka.client.Const.Attributes;

import com.google.gwt.user.client.rpc.IsSerializable;

public class UserDTO implements IsSerializable {
	
	public String login;
	public String pass;
	public String email;
	public Const.Attributes attr;
	
	public UserDTO() {}
	
	public UserDTO(String login, String pass, String email, Attributes attr) {
		super();
		this.login = login;
		this.pass = pass;
		this.email = email;
		this.attr = attr;
	}
	
	public boolean equals(UserDTO udto) {
		return login.equals(udto.login) && email.equals(udto.email) && attr==udto.attr;
	}
	
	
}
